// 模块 2

const reducer = (state = {
    // 全局数据
    bannerList: [],
    proList: []
}, action) => {
    switch (action.type) {
        case 'change_banner_list':

            return { ...state, bannerList: action.payload }
        case 'change_pro_list':

            return { ...state, proList: action.payload }
        default:
            return state
    }
}

export default reducer